package com.myway.model;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by yufei on 2017/11/2.
 */
public class Flight {
    private List<Segment> segments=new ArrayList<Segment>();

    /**
     * @return the segments
     */
    public List<Segment> getSegments() {
        return this.segments;
    }

    /**
     * @param segments the segments to set
     */
    public void setSegments(List<Segment> segments) {
        this.segments = segments;
    }

    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        // TODO Auto-generated method stub


        return ""+segments.size();
    }


}
